<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js变量</title>
		<script>
			//变量，体会弱类型的好处
			//string c="dog";
			
			//alert(b);
			alert(typeof(b));
			var a=100;
			alert(a);
			alert(typeof(a));
			a=2>1;
			alert(a); 
			alert(typeof(a));
			a="你好，我是渣渣灰";
			alert(a);
			alert(typeof(a));
			a=null;
			alert(a);
			alert(typeof(a));
			a=new Array(10);
			alert(a);
			alert(typeof(a));
		</script>
	</head>
	<body>
	</body>
</html>